The maximum recommended length depends on the number of elbows, but generally, its around 25 feet for a straight run with 4-inch rigid metal ducting. Each 90-degree elbow reduces the allowable length. Consult your dryers installation instructions for specifics.